import { LOADDATA } from '../constants/list'

const INITIAL_STATE = {
  list: []
}

export default function counter (state = INITIAL_STATE, action) {
  switch (action.type) {
    case LOADDATA:
      return {
        list: action.list
      }
    default:
      return state
  }
}